<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login PediOnline!</title>
</head>
<body>
<h1>Login</h1>
<div id="login-error">${error}</div>
<form action="../../j_spring_security_check" method="post" >
<p><label for="j_username">Username:</label><input id="j_username" name="j_username" type="text" /></p>
<p><label for="j_password">Password:</label><input id="j_password" name="j_password" type="password" /></p>
<input  type="submit" value="Login"/>
</form>
<form action="/pediOnline/TODO/auth/create" method="post" >
<h1>Sing Up</h1>
<div id="login-error">${singUpError}</div>
<h4>Username:</h4><input type="text" name="newUsername">
<h4>Password:</h4><input type="text" name="newPassword">
<input  type="submit" value="Save"/>
</form>
</body>
</html>